﻿


#toggleChatButton {
    font-size: 30px;
    z-index: 9999;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height:60px;
    background-color: #007bff; /* رنگ پس‌زمینه */
    color: white; /* رنگ متن */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    cursor: pointer;
    border: 2px solid #66b0ff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

    #toggleChatButton:hover {
        background-color: #0056b3; /* رنگ پس‌زمینه هنگام هاور */
    }

#chatContainer {
    display: none;
    box-sizing: border-box;
    z-index: 9998;
    will-change: transform;
    transition: 0.45s cubic-bezier(0.11, 0.79, 0.35, 0.99) 0.05s;
    margin: 0px;
    width: 360px;
    height: 410px;
    min-width: 360px;
    min-height: 350px;
    position: fixed;
    bottom: 86px;
    right: 20px;
    border-radius: 10px;
    background-color: #f6f6fb;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}
.hedarchatbox {
    display: flex;
    padding: 0px 10px 0px 0px;
    -webkit-box-pack: start;
    justify-content: space-around;
    -webkit-box-align: center;
    align-items: center;
    height: 60px;
    border-bottom: 1px solid rgb(221, 221, 221);
    cursor: pointer;
    box-shadow: rgba(10, 10, 10, 0.1) 0px 3px 7px -3px;
    background-color: rgb(1,33,72);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #e4e4e4;
}

#chatBox {
    max-height: 310px;
    overflow-y: auto;
    padding: 10px;
    height: 100%;
    direction:rtl;
}

.hidden {
    display: none;
}
.boxinput {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    position: absolute;
    bottom: -1px;
}
    .boxinput input {
        width: 297px;
    }
.youtype {
    color: black;
    border-radius: 10px 10px 0px;
    background-color: #fff;
    min-height: 30px;
    padding: 5px 5px 2px 7px;
    margin: 5px 0px 2px 40px;
    width: fit-content;
    text-align: justify;
}
.mantype {
    color: black;
    border-radius: 10px 10px 10px 0px;
    background-color: #f5e1e1;
    min-height: 30px;
    padding: 5px 7px 2px 5px;
    margin: 5px 40px 2px 0px;
    width: fit-content;
    position: relative;
    text-align: justify;
}
.loading {
    padding: 10px;
    text-align: left;
    direction: ltr;
}

/* HTML: <div class="loaderchatbot"></div> */
.loaderchatbot {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
}

    .loaderchatbot::before,
    .loaderchatbot::after {
        content: "";
        grid-area: 1/1;
        margin: 2px;
        border: inherit;
        border-radius: 50%;
    }

    .loaderchatbot::before {
        border-color: #f03355 #0000;
        animation: inherit;
        animation-duration: .5s;
        animation-direction: reverse;
    }

    .loaderchatbot::after {
        margin: 8px;
    }

@keyframes l16 {
    100% {
        transform: rotate(1turn)
    }
}

/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.loaderpulsing {
    width: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 0 0 0px #0004;
    animation: l2 2.5s infinite linear;
    position: absolute;
    top: 35%;
    left: 30%;
    opacity: 0.6;
}

    .loaderpulsing:before,
    .loaderpulsing:after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: 0 0 0 0px #0004;
        animation: inherit;
        animation-delay: -0.5s;
    }

    .loaderpulsing:after {
        animation-delay: -1s;
    }

@keyframes l2 {
   
    100% {
        box-shadow: 0 0 0 40px #0000
    }
}